package cn.wolfcode.p2p.business.query;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.util.StringUtils;

import cn.wolfcode.p2p.base.query.QueryObject;
import lombok.Getter;
import lombok.Setter;

/**
 * 线下充值查询
 * 
 * @author wolfcode
 *
 */
@Setter
@Getter
public class RechargeOfflineQueryObject extends QueryObject {

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date beginDate;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date endDate;

	private Integer state = -1;
	private Long bankInfoId = -1L;
	private String tradeCode;

	public String getTradeCode() {
		return StringUtils.hasLength(tradeCode) ? tradeCode : null;
	}

}
